<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<style>
	#demo1{
		display: none;
	}
	#demo1 img{
		width: 200px;
	}
</style>
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox-content">
					<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${user.id}"
							type="hidden">
						<input id="userRelevancyId" name="userRelevancyId" th:value="${user.userRelevancyId}"
							   type="hidden">
						<div class="form-group">
							<label class="col-sm-3 control-label">姓名：</label>
							<div class="col-sm-8">
								<input id="name" name="name" class="form-control" type="text"
									th:value="${user.name}">
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-3 control-label">场次：</label>
							<div class="col-sm-8">
								<input type="hidden" id="placeNum1" th:value="${user.placeNum}">
								<select id="placeNum" name="placeNum" class="form-control">
									<option value="">请选择场次</option>
									<option value="1">上午</option>
									<option value="2">下午</option>
								</select>
							</div>
						</div>
<!--						<div class="form-group">-->
<!--							<label class="col-sm-3 control-label">所属竞赛：</label>-->
<!--							<div class="col-sm-8">-->
<!--								<select id="competitionType" name="competitionType" class="form-control">-->
<!--									<option value="">请选择</option>-->
<!--									<option value="1">教师组</option>-->
<!--									<option value="2">学生中职组</option>-->
<!--									<option value="3">学生高校组</option>-->
<!--								</select>-->
<!--							</div>-->
<!--						</div>-->

						<div class="form-group">
							<label class="col-sm-3 control-label">所属竞赛：</label>
							<div class="col-sm-8">
								<div id="encipher" class="examjudge xm-select-demo" ></div>
								<input name="competitionType" class="competitionType" type="hidden" th:value="${user.competitionType}">
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-3 control-label">请选择赛区：</label>
							<div class="col-sm-8">
								<select id="area" name="competitionAreaId" class="form-control"></select>
								<input type="hidden" id="areas" th:value="${user.competitionAreaId}">
								<input type="hidden" name="competitionAreaName" id="competitionAreaName" th:value="${user.competitionAreaName}">
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-3 control-label">人员分配：</label>
							<div class="col-sm-8">
								<select id="track" name="track" class="form-control">
									<option value="">请选择</option>
									<option value="A">A赛场裁判</option>
									<option value="B">B赛场裁判</option>
									<option value="C">C赛场裁判</option>
									<option value="D">工作人员</option>
									<option value="E">竞赛一级管理员</option>
									<option value="F">超级管理员</option>
								</select>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-3 control-label">用户名：</label>
							<div class="col-sm-8">
								<input id="username" name="username" class="form-control"
									type="text" th:value="${user.username}" readonly>
							</div>
						</div>
						<div class="form-group" th:if="${user.type>0}">
							<label class="col-sm-3 control-label">工作单位：</label>
							<div class="col-sm-8">
								<input name="orgName" class="form-control" type="text" th:value="${user.orgName}" >
							</div>
						</div>
<!--						<div class="form-group" th:if="${user.type==0}">-->
<!--							<label class="col-sm-3 control-label">所属机构：</label>-->
<!--							<div class="col-sm-8">-->
<!--								<select name="orgId" class="form-control">-->
<!--									<option value="">请选择</option>-->
<!--									<option th:each="item : ${organizationNews}" th:selected="${user.orgId eq item.id}"-->
<!--											th:value="${item.id}" th:text="${item.name}"></option>-->
<!--								</select>-->
<!--							</div>-->
<!--						</div>-->
						<div class="form-group">
							<label class="col-sm-3 control-label">手机号码：</label>
							<div class="col-sm-8">
								<input id="mobile" name="mobile" class="form-control"
									   type="number" th:value="${user.mobile}" readonly>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">身份证号码：</label>
							<div class="col-sm-8">
								<input id="idNumber" name="idNumber" class="form-control"
									   type="text" th:value="${user.idNumber}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">E-mail：</label>
							<div class="col-sm-8">
								<input id="email" name="email" class="form-control" type="email"
									th:value="${user.email}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">性别：</label>
							<div class="col-sm-8">
								<input id="sexHidden" th:value="${user.sex}" class="form-control"
									   type="hidden">
								<select id="sex" name="sex" class="form-control">
									<option value="">请选择</option>
									<option value="0">未知</option>
									<option value="1">男</option>
									<option value="2">女</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">会员类型：</label>
							<div class="col-sm-8">
								<input id="typeHidden" th:value="${user.type}" class="form-control"
									   type="hidden">
								<select id="type" name="type" class="form-control">
									<option value="">请选择</option>
									<option value="0">个人会员</option>
									<option value="1">机构会员</option>
									<option value="2">运营人员</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">执裁经历：</label>
							<div class="col-sm-8">
								<textarea class="form-control" name="experience" th:text="${user.experience}"  id="experience" maxlength="800"></textarea>
							</div>
						</div>

<!--						<div th:text="${relevancy}"></div>-->

						<div id="job" th:if="${relevancy}">

							<input type="hidden" id="jobTypes" th:value="${relevancy.type}">

							<div class="form-group">
								<label class="col-sm-3 control-label">寸照：</label>
								<div class="col-sm-8">
									<button type="button" class="layui-btn" id="test1">上传图片</button>

									<div class="layui-upload-list" id="demo1" th:if="${relevancy.img == null}">
										<img class="layui-upload-img" th:src="${relevancy.img}">
									</div>

									<div class="layui-upload-list" id="demo1" th:if="${relevancy.img != null}">
										<img class="layui-upload-img" th:src="${relevancy.img}">
									</div>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">职称：</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" name="professional" placeholder="请输入您的职称" th:value="${relevancy.professional}">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">职务：</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" name="job" placeholder="请输入您的职务" th:value="${relevancy.job}">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">开户行：</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" name="accountName" placeholder="请输入您的开户行" th:value="${relevancy.accountName}">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">银行卡号：</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" name="cardNumber" placeholder="请输入您的银行卡号" th:value="${relevancy.cardNumber}">
								</div>
							</div>

						</div>


						<div class="form-group">
							<label class="col-sm-3 control-label">状态:</label>
							<div class="col-sm-8">
								<label class="radio-inline"> <input
									th:field="*{user.status}" type="radio" name="status" value="1" />
									正常
								</label> <label class="radio-inline"> <input
									th:field="*{user.status}" type="radio" name="status" value="0" />
									禁用
								</label>
							</div>
						</div>
						<input type="hidden" name="roleIds" id="roleIds"
							th:value="${roleIds}">
						<div class="form-group">
							<label class="col-sm-3 control-label">角色</label>
							<div class="col-sm-8">
								<label th:each="role:${roles}" class="checkbox-inline">
									<input name="role" type="checkbox" th:value="${role.id}"
									th:text="${role.roleName}" th:checked="${role.roleSign}">
								</label>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-3 control-label">裁判序号(重要)：</label>
							<div class="col-sm-8">
								<input id="refereesNumber" name="refereesNumber" class="form-control" type="refereesNumber"
									   th:value="${user.refereesNumber}">
							</div>
						</div>

						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-3">
								<button type="submit" class="btn btn-primary">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/xmSelect.js"></script>
	<script type="text/javascript" src="/js/webJs/sys/user/edit.js"></script>
</body>
</html>
